@import '~antd/lib/style/color/colors.less';

.imgBook1 {
  position: absolute;
  top: 98px;
  left: 0;
  z-index: 999;
  width: 120px;
  -webkit-user-drag: none;
}

.imgBook2 {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 999;
  width: 120px;
  -webkit-user-drag: none;
}

.imgPlant {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 999;
  width: 120px;
  -webkit-user-drag: none;
}

.imgAirPlane {
  position: absolute;
  top: 210px;
  left: 400px;
  z-index: 999;
  width: 76px;
  height: 66px;
  -webkit-user-drag: none;
}

.block {
  width: 40px;
  height: 40px;
  border-color: transparent;
  border-style: solid;
  border-width: 3px;
}
.noticeButton {
  display: inline-block;
  height: 64px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}
.badge {
  margin-left: 30px !important;
  font-size: 38px !important;
  vertical-align: middle !important;
}
.header {
  display: flex;
  height: 100px;
  padding: 0 16px;
}
.header > a {
  display: flex;
  align-items: center;
  height: 100%;
}
.header > a > img {
  height: 64px;
}
.header > a > h1 {
  height: 32px;
  margin: 0 0 0 12px;
  color: #fff;
  font-weight: 600;
  font-size: 36px;
  line-height: 32px;
}
.header .badgeWrapper {
  display: flex;
  width: 210px;
  margin: 0 2px;
  line-height: 64px;
  border-radius: 100px;
}
.header .badgeWrapper .badgeTitle {
  margin-left: 15px;
  font-size: 22px;
  line-height: 64px;
  vertical-align: 5px;
}

.remove {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px;
  color: #fff;
  font-size: 32px;
  line-height: 32px;
  background: red;
  cursor: pointer;
}
@colors: blue, purple, cyan, green, pink, red, orange, yellow, volcano, geekblue, lime, gold;
each(@colors,{
    .block-@{value} {
      /* ~@{value} */
        background-color:~'@{@{value}-base}';
        .block();
      }
      .rgl-@{value} {
        .page {
            width:1920px;
            height: 1080px;
            user-select: none;
            background-color: ~'@{@{value}-4}';
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
            transform: scale(0.5) translate(-50%, -50%);
        }
        .header {
            background-color: ~'@{@{value}-7}';
        }
        .badgeWrapper {
            background-color: ~'@{@{value}-5}';
            border: 1px solid #f7e47799;
            box-shadow: 0 0 2px #fff;
            .badgeTitle {
              color: #fff;
            }
          }
        :global {
          .bg-1{
            background-color: ~'@{@{value}-7}';
          }
          .react-grid-item.react-grid-placeholder {
            background: ~'@{@{value}-1}';
          }
          .class-culture-wrapper {
            color: ~'@{@{value}-7}';
          }
          .linear-title{
            background-image: linear-gradient(270deg, ~'@{@{value}-2}' 0%, ~'@{@{value}-6}' 100%);
          }
          .ant-carousel .slick-prev,
          .ant-carousel .slick-next,
          .ant-carousel .slick-prev:hover,
          .ant-carousel .slick-next:hover {
            background-color: ~'@{@{value}-base}' !important;
          }

          .ant-carousel .slick-dots li button {
            width: 18px !important;
            height: 8px !important;
            background-color: ~'@{@{value}-3}' !important;
          }
          
          .ant-carousel .slick-dots li.slick-active button {
            background-color: ~'@{@{value}-base}' !important;
          }
        }
      }
});

.block-selected {
  border-color: rgb(112, 112, 112);
}

:global {
  .rgl .bg {
    position: absolute;
    top: 0;
    right: 30px;
    bottom: 20px;
    left: 0;
    border-radius: 10px;
  }
  .rgl .mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
  .rgl .shadow-mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-shadow: 0 0 5px 5px;
  }
  .rgl .bg-2 {
    background-color: #fff;
  }
  .rgl .data-table-body {
    overflow: auto;
  }
  .rgl .data-table-body::-webkit-scrollbar {
    display: none;
  }
  .rgl .data-table-row {
    margin: 0 -4px;
  }
  .rgl .data-table-row > .ant-col {
    display: block;
    margin: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    text-overflow: ellipsis;
    border: 1px solid #afafc7;
  }
  .rgl .data-table-row > .ant-col.header {
    font-weight: bold;
    background-color: lightgray;
  }
  .rgl .ant-carousel .slick-dots-top {
    top: -10px !important;
  }
  .rgl .react-grid-layout {
    position: relative;
    flex: 1;
    margin: 40px 50px 0 50px;
    border: dashed 1px gray;
  }
  .rgl .react-grid-item.react-grid-placeholder {
    z-index: 2;
    opacity: 0.2;
    transition-duration: 100ms;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
  }
  .rgl .react-grid-item {
    box-sizing: border-box;
    transition: all 200ms ease;
    transition-property: left, top;
  }

  .rgl .react-grid-item.resizing {
    z-index: 1;
    opacity: 0.9;
    will-change: width, height;
  }

  .react-grid-item.static {
    background: #cce;
  }

  .rgl .react-grid-item img {
    user-select: none;
    pointer-events: none;
  }

  .rgl .react-grid-item.cssTransforms {
    transition-property: transform;
  }

  .rgl .react-grid-item.react-draggable-dragging {
    z-index: 3;
    transition: none;
    will-change: transform;
  }

  .rgl .react-grid-item.dropping {
    visibility: hidden;
  }

  .rgl .react-grid-item > .react-resizable-handle {
    position: absolute;
    width: 20px;
    height: 20px;
  }

  .rgl .react-grid-item > .react-resizable-handle::after {
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 5px;
    height: 5px;
    border-right: 2px solid rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid rgba(0, 0, 0, 0.4);
    content: '';
  }

  .rgl .react-resizable-hide > .react-resizable-handle {
    display: none;
  }

  .rgl .react-grid-item > .react-resizable-handle.react-resizable-handle-sw {
    bottom: 0;
    left: 0;
    transform: rotate(90deg);
    cursor: sw-resize;
  }

  .rgl .react-grid-item > .react-resizable-handle.react-resizable-handle-se {
    right: 0;
    bottom: 0;
    cursor: se-resize;
  }

  .rgl .react-grid-item > .react-resizable-handle.react-resizable-handle-nw {
    top: 0;
    left: 0;
    transform: rotate(180deg);
    cursor: nw-resize;
  }

  .rgl .react-grid-item > .react-resizable-handle.react-resizable-handle-ne {
    top: 0;
    right: 0;
    transform: rotate(270deg);
    cursor: ne-resize;
  }

  .rgl .react-grid-item > .react-resizable-handle.react-resizable-handle-w,
  .rgl .react-grid-item > .react-resizable-handle.react-resizable-handle-e {
    top: 50%;
    margin-top: -10px;
    cursor: ew-resize;
  }

  .rgl .react-grid-item > .react-resizable-handle.react-resizable-handle-w {
    left: 0;
    transform: rotate(135deg);
  }

  .rgl .react-grid-item > .react-resizable-handle.react-resizable-handle-e {
    right: 0;
    transform: rotate(315deg);
  }

  .rgl .react-grid-item > .react-resizable-handle.react-resizable-handle-n,
  .rgl .react-grid-item > .react-resizable-handle.react-resizable-handle-s {
    left: 50%;
    margin-left: -10px;
    cursor: ns-resize;
  }

  .rgl .react-grid-item > .react-resizable-handle.react-resizable-handle-n {
    top: 0;
    transform: rotate(225deg);
  }

  .rgl .react-grid-item > .react-resizable-handle.react-resizable-handle-s {
    bottom: 0;
    transform: rotate(45deg);
  }
  .rgl .layoutJSON {
    margin-top: 10px;
    padding: 10px;
    background: #ddd;
    border: 1px solid black;
  }

  .rgl .columns {
    -moz-columns: 120px;
    -webkit-columns: 120px;
    columns: 120px;
  }

  .react-grid-item .text {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 24px;
    margin: auto;
    font-size: 24px;
    text-align: center;
  }

  .react-grid-item .minMax {
    font-size: 12px;
  }

  .react-grid-item .add {
    cursor: pointer;
  }

  .react-grid-dragHandleExample {
    cursor: move;
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
  }

  .toolbox {
    width: 100%;
    height: 120px;
    overflow: scroll;
    background-color: #dfd;
  }

  .hide-button {
    position: absolute;
    top: 0;
    right: 5px;
    font-size: 20px;
    cursor: pointer;
  }

  .toolbox__title {
    margin-bottom: 5px;
    font-size: 24px;
  }

  .toolbox__items {
    display: block;
  }

  .toolbox__items__item {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 5px;
    padding: 10px;
    line-height: 40px;
    text-align: center;
    background-color: #ddd;
    border: 1px solid black;
    cursor: pointer;
  }

  .droppable-element {
    width: 150px;
    margin: 10px 0;
    padding: 10px;
    text-align: center;
    background: #fdd;
    border: 1px solid black;
  }
}
